package com.jince.datacenter.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jince.datacenter.mapper.DayActivityMapper;
import com.jince.datacenter.model.DayActivity;

@Service
public class DayActivityService {

	@Autowired
	private DayActivityMapper dayActivityMapper;

	public void addDayActivity(DayActivity dayActivity) {
		dayActivityMapper.insert(dayActivity);
	}

	public List<DayActivity> getAll() {
		return dayActivityMapper.selectAll();
	}

	public List<DayActivity> getAll2() {
		return dayActivityMapper.queryAll();
	}
}
